.analytics
  .row
    == render 'widget', title: t('dashboard.analytics.apps'), count: @analytics[:apps], url: apps_path, color_style: 'bg-blue-500', icon: 'fa-brands fa-adn'
    == render 'widget', title: t('dashboard.analytics.debug_files'), count: @analytics[:debug_files], url: debug_files_path, color_style: 'bg-orange-500', icon: 'fa-solid fa-bug'
    == render 'widget', title: t('dashboard.analytics.teardowns'), count: @analytics[:teardowns], url: teardowns_path, color_style: 'bg-pink-500', icon: 'fa-solid fa-layer-group'
    == render 'widget', title: t('dashboard.analytics.uploads'), count: @analytics[:releases], url: nil, color_style: 'bg-green-500', icon: 'fa-solid fa-paper-plane'

    - if current_user&.admin?
      == render 'widget', title: t('dashboard.analytics.web_hooks'), count: @analytics[:webhooks], url: admin_web_hooks_path, color_style: 'bg-blue-400', icon: 'fa-solid fa-anchor'
      == render 'widget', title: t('dashboard.analytics.users'), count: @analytics[:users], url: admin_users_path, color_style: 'bg-yellow-400', icon: 'fa-solid fa-user'
      == render 'widget', title: t('dashboard.analytics.background_jobs'), count: @analytics[:jobs], url: admin_background_jobs_path, color_style: 'bg-red-300', icon: 'fa-solid fa-bars-progress'
      == render 'widget', title: t('dashboard.analytics.disk_usage'), count: @analytics[:disk], url: admin_system_info_index_path, color_style: 'bg-teal-500', icon: 'fa-solid fa-hard-drive'

  .row.d-sm-none
    .col-md-12
      ul.list-group.mb-3
        li.list-group-item.d-flex.justify-content-between.align-items-start
          .me-auto
            i.fa-brands.fa-adn.pe-1
            = link_to t('dashboard.analytics.apps'), apps_path, data: { turbo_action: :advance }
          .badge.text-bg-primary.rounded-pill
            = @analytics[:apps]
        li.list-group-item.d-flex.justify-content-between.align-items-start
          .me-auto
            i.fa-solid.fa-bug.pe-1
            = link_to t('dashboard.analytics.debug_files'), debug_files_path, data: { turbo_action: :advance }
          .badge.text-bg-primary.rounded-pill
            = @analytics[:debug_files]
        li.list-group-item.d-flex.justify-content-between.align-items-start
          .me-auto  
            i.fa-solid.fa-layer-group.pe-1
            = link_to t('dashboard.analytics.teardowns'), teardowns_path, data: { turbo_action: :advance }
          .badge.text-bg-primary.rounded-pill
            = @analytics[:teardowns]
        li.list-group-item.d-flex.justify-content-between.align-items-start 
          .me-auto  
            i.fa-solid.fa-paper-plane.pe-1
            = t('dashboard.analytics.uploads')
          .badge.text-bg-primary.rounded-pill
            = @analytics[:releases]
